package com.imooc.user.dao;

import com.imooc.thrift.user.domin.UserInfo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.querydsl.QuerydslPredicateExecutor;
import org.springframework.stereotype.Repository;

/**
 * @Auther: zhaozeyang
 * @Date: 2018/8/18 18:05
 * @Description:
 */
@Repository
public interface UserRepository extends JpaRepository<UserInfo, Integer>, QuerydslPredicateExecutor<UserInfo> {


    UserInfo findOneByUsername(String username);

    UserInfo findById(Long id);
}
